package com.zxw.order.controller;


import com.zxw.common.core.base.res.BaseRes;
import com.zxw.order.api.OrderAPI;
import com.zxw.order.domain.vo.OrderPageVO;
import com.zxw.order.service.OrderService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author Xuewei.Zhang
 * @since 2022-01-21
 */
@RestController
@RequestMapping("/order")
@RequiredArgsConstructor
public class OrderController implements OrderAPI {

    private final OrderService orderService;

    @GetMapping("/getOrderListPageByAnyWhere")
    public BaseRes getOrderListPageByAnyWhere(@RequestBody OrderPageVO orderPageVO) {
        orderService.getOrderListPageByAnyWhere(orderPageVO);
        return BaseRes.ok();
    }


    @GetMapping("/getOrder")
    public BaseRes getOrder() {
        return null;
    }
}
